package com.yf.course.modules.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

/**
 * <p>
 * 课程与视频的对应实体类
 * </p>
 */
@Data
@TableName("el_course_video")
public class CourseVideo extends Model<CourseVideo> {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 视频ID
     */
    @TableField("video_id")
    private String videoId;

    /**
     * 课程ID
     */
    @TableField("course_id")
    private String courseId;

    /**
     * 创建者
     */
    @TableField("create_by")
    private String createBy;

    public CourseVideo() {
    }

    public CourseVideo(String videoId, String courseId, String createBy) {
        this.videoId = videoId;
        this.courseId = courseId;
        this.createBy = createBy;
    }
}
